package com.urfresh.sp.flume.dto.v2;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by urfresh.mark on 2016/8/24.
 */
public class OrderInfo extends AppBaseInfo {

    @JSONField(ordinal = 6)
    String orderId;

    @JSONField(ordinal = 7)
    String couponId;

    @JSONField(ordinal = 8)
    String orderType;

    public OrderInfo build(){
        return new OrderInfo(this.androidId, this.openId, this.idfa, this.userName, this.submitTime, this.orderId, this.couponId, this.orderType);
    }

    public OrderInfo(String androidId, String openId, String idfa, String userName, String submitTime, String orderId, String couponId, String orderType) {
        super(androidId, openId, idfa, userName, submitTime);
        this.orderId = orderId;
        this.couponId = couponId;
        this.orderType = orderType;
    }

    public OrderInfo submitTime(String submitTime){
        this.submitTime = submitTime;
        return this;
    }

    public OrderInfo idfa(String idfa){
        this.idfa = idfa;
        return this;
    }

    public OrderInfo userName(String userName){
        this.userName = userName;
        return this;
    }

    public OrderInfo openId(String openId){
        this.openId = openId;
        return this;
    }

    public OrderInfo(){
        super();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

//    public String getSignValue(){
//        return this.getAndroidId()+this.getIdfa()+this.getUserName()+this.getAppId()+this.getOpenId()+this.getSubmitTime()+this.getOrderId()+this.getCouponId()+this.getOrderType();
//    }
}
